﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration;
using BPM.Entity;

namespace BPM.Service.Mappings
{
	internal class BarcodeConfiguration : EntityConfiguration<Barcode>
	{
		public BarcodeConfiguration()
		{
			this.HasRequired(b => b.BarcodeCategory).HasConstraint((b, bc) => b.BarcodeCategoryId == bc.Id);
		}
	}
}
